package com.qeado.site.dao.ibatis;

import org.springframework.stereotype.Repository;

import com.qeado.common.dao.BaseDao;
import com.qeado.site.dao.SiteContactInfoManageDao;
import com.qeado.site.model.SiteContactInfo;

@Repository
@SuppressWarnings("unchecked")
public class SiteContactInfoManageDaoImpl extends BaseDao implements SiteContactInfoManageDao {

	public SiteContactInfo getSiteConactInfo() {	
		return (SiteContactInfo)getSqlMapClientTemplate().queryForObject("getSiteContactInfo",null);
	}

	public void insertSiteContactInfo(SiteContactInfo siteContactInfo) {
	
		getSqlMapClientTemplate().insert("insertNewSiteContactInfo",siteContactInfo);
		
	}

	public void updateSiteContactInfo(SiteContactInfo siteContactInfo) {
		
		getSqlMapClientTemplate().update("updateSiteContactInfo", siteContactInfo);
		
	}

}
